package oceanwiki.req;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @FileName DocSaveReq
 * @Description
 * @Author Me
 * @date 2024-09-12
 **/

@Data
@ToString
public class DocSaveReq {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private Long ebookId;
    private Long parent;
    private String name;
    private Integer sort;
    private Integer viewCount;
    private Integer voteCount;
    @NotNull(message = "内容不能为空！")
    private String content;
}
